<template>
  <a-config-provider :locale="zhCN" :theme="themeConfig">
    <App>
      <InternalThemeInject>
        <slot></slot>
      </InternalThemeInject>
    </App>
  </a-config-provider>
</template>

<script setup lang="ts">
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import { App } from 'ant-design-vue';
import InternalThemeInject from './InternalThemeInject.vue';
import { useThemeStore } from '@/stores/theme';

const themeStore = useThemeStore();
const { themeConfig } = storeToRefs(themeStore);
</script>

<style scoped></style>
